package com.keiou.drink.api;

import java.util.HashMap;

/**
 * 作者 ：Bob on 2017/6/1.
 * 邮箱 ：motherlovefather@126.com
 */

public class HttpCode {

    /*自定义*/
    public static final int UNKNOWN = 1000;
    public static final int PARSE_ERROR = 1001;

    /*服务端*/
    public static final int SUCCESS_CODE = 200;
    public static final int SYS_RESET_CODE = 301;


    /*english*/
    public static HashMap<Integer, String> en = new HashMap<>();

    static {
        en.put(UNKNOWN, "network connection failed, please try again later");
        en.put(PARSE_ERROR, "data parsing failure");
    }

    /*chinese*/
    public static HashMap<Integer, String> zh = new HashMap<>();

    static {
        zh.put(UNKNOWN, "网络连接失败,请稍后重试");
        zh.put(PARSE_ERROR, "数据解析失败");
    }


}
